#ifndef __COMBINED_COMMAND_H
#define __COMBINED_COMMAND_H
#include "stm32f10x.h"


#define Motor4_Sensor1_0 GPIOB->BRR = GPIO_Pin_2 //enable
#define Motor4_Sensor1_1 GPIOB->BSRR = GPIO_Pin_2//disable

#define Motor4_Sensor2_0 GPIOB->BRR = GPIO_Pin_10//enable
#define Motor4_Sensor2_1 GPIOB->BSRR = GPIO_Pin_10//disable

#define Motor4_Sensor3_0 GPIOB->BRR = GPIO_Pin_11//enable
#define Motor4_Sensor3_1 GPIOB->BSRR = GPIO_Pin_11//disable

#define Motor2_Sensor1_0 GPIOC->BRR = GPIO_Pin_4//enable
#define Motor2_Sensor1_1 GPIOC->BSRR = GPIO_Pin_4//disable

#define Motor2_Sensor2_0 GPIOC->BRR = GPIO_Pin_5//enable
#define Motor2_Sensor2_1 GPIOC->BSRR = GPIO_Pin_5//disable

#define Motor3_Sensor1_0 GPIOB->BRR = GPIO_Pin_0//enable
#define Motor3_Sensor1_1 GPIOB->BSRR = GPIO_Pin_0//disable

#define Motor3_Sensor2_0 GPIOB->BRR = GPIO_Pin_1//enable
#define Motor3_Sensor2_1 GPIOB->BSRR = GPIO_Pin_1//disable





void MORTOR_SETSENSOR(u8 motor_num_index, u8 sensor_num);
void MORTOR_SETSENSOR_init(void);
#endif
